chrome.extension.onRequest.addListener(
    function(req, sender, sendResponse){
		//console.log("req",req)
		//alert(req.action)
        if(req.action == 'setLoginForm'){
            //setFormData(req.params);
			if(req.params["user"]){
				document.getElementById("codeUserAccount").value=req.params["user"]["username"]||'';
				document.getElementById("codeUserPassword").value=req.params["user"]["password"]||'';
			}
			if(req.params["code"]){
				document.getElementById("rndCode1").value=req.params["code"]["code1"]||'';
				document.getElementById("rndCode2").value=req.params["code"]["code2"]||'';
				document.getElementById("rndCode3").value=req.params["code"]["code3"]||'';
			}

        } 
    }
);